package servicePlayer;

import interfaceDAO.DaoPlayer;
import player.Player;

import java.util.List;

/**

 * User: Станислав
 * Date: 28.06.14

 */
public class ServicePlayer {
    DaoPlayer daoPlayer = new DaoPlayer();


    public List<Player> getAllPlayer() {
        return daoPlayer.getAllPlayer();
    }

    public Player getPlayerByName(String name) {
        return daoPlayer.getPlayerByName(name);
    }

    public Player getPlayerByNickname(String nickName) {
        return daoPlayer.getPlayerByNickname(nickName);
    }


    public Player getPlayerByScore(int score) {
        return daoPlayer.getPlayerByScore(score);
    }


    public boolean addPlayer(Player player) {
        return daoPlayer.addPlayer(player);
    }
}
